home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / test / radio.cxx < prev    next >
Encoding:
C/C++ Source or Header  |  1999-09-27  |  2.1 KB  |  69 lines

  1. // generated by Fast Light User Interface Designer (fluid) version 1.00
  2.  
  3. #include "radio.h"
  4.  
  5. int main(int argc, char **argv) {
  6.   Fl_Window* w;
  7.   { Fl_Window* o = new Fl_Window(462, 453);
  8.     w = o;
  9.     new Fl_Button(20, 10, 160, 30, "Fl_Button");
  10.     new Fl_Return_Button(20, 50, 160, 30, "Fl_Return_Button");
  11.     new Fl_Light_Button(20, 90, 160, 30, "Fl_Light_Button");
  12.     { Fl_Check_Button* o = new Fl_Check_Button(20, 130, 160, 30, "Fl_Check_Button");
  13.       o->box(FL_UP_BOX);
  14.       o->down_box(FL_DIAMOND_DOWN_BOX);
  15.     }
  16.     { Fl_Round_Button* o = new Fl_Round_Button(20, 170, 160, 30, "Fl_Round_Button");
  17.       o->box(FL_UP_BOX);
  18.       o->down_box(FL_ROUND_DOWN_BOX);
  19.     }
  20.     { Fl_Group* o = new Fl_Group(190, 10, 70, 120);
  21.       o->box(FL_THIN_UP_FRAME);
  22.       { Fl_Check_Button* o = new Fl_Check_Button(190, 10, 70, 30, "radio");
  23.         o->type(102);
  24.         o->down_box(FL_DIAMOND_DOWN_BOX);
  25.       }
  26.       { Fl_Check_Button* o = new Fl_Check_Button(190, 40, 70, 30, "radio");
  27.         o->type(102);
  28.         o->down_box(FL_DIAMOND_DOWN_BOX);
  29.       }
  30.       { Fl_Check_Button* o = new Fl_Check_Button(190, 70, 70, 30, "radio");
  31.         o->type(102);
  32.         o->down_box(FL_DIAMOND_DOWN_BOX);
  33.       }
  34.       { Fl_Check_Button* o = new Fl_Check_Button(190, 100, 70, 30, "radio");
  35.         o->type(102);
  36.         o->down_box(FL_DIAMOND_DOWN_BOX);
  37.       }
  38.       o->end();
  39.     }
  40.     { Fl_Group* o = new Fl_Group(270, 10, 90, 115);
  41.       o->box(FL_THIN_UP_BOX);
  42.       { Fl_Button* o = new Fl_Button(280, 20, 20, 20, "radio");
  43.         o->type(102);
  44.         o->selection_color(1);
  45.         o->align(FL_ALIGN_RIGHT);
  46.       }
  47.       { Fl_Button* o = new Fl_Button(280, 45, 20, 20, "radio");
  48.         o->type(102);
  49.         o->selection_color(1);
  50.         o->align(FL_ALIGN_RIGHT);
  51.       }
  52.       { Fl_Button* o = new Fl_Button(280, 70, 20, 20, "radio");
  53.         o->type(102);
  54.         o->selection_color(1);
  55.         o->align(FL_ALIGN_RIGHT);
  56.       }
  57.       { Fl_Button* o = new Fl_Button(280, 95, 20, 20, "radio");
  58.         o->type(102);
  59.         o->selection_color(1);
  60.         o->align(FL_ALIGN_RIGHT);
  61.       }
  62.       o->end();
  63.     }
  64.     o->end();
  65.   }
  66.   w->show(argc, argv);
  67.   return Fl::run();
  68. }
  69.